package com.ct.application.shipping.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ct.application.commons.vo.StatusRequest;
import com.ct.application.shipping.model.po.ChuanBoXinXiZhiWeiSavePO;
import com.ct.application.shipping.model.po.ChuanBoXinXiZhiWeiSearchPO;
import com.ct.application.shipping.model.vo.ChuanBoXinXiZhiWeiVO;
import com.ct.repository.commons.IBaseService;
import com.ct.shipping.orm.ChuanBoXinXiZhiWeiDO;

import java.util.Map;

/**
 * <p>
 * 船舶信息职位中间表 服务类
 * </p>
 *
 * @author carlo
 */
public interface ChuanBoXinXiZhiWeiService extends IBaseService<ChuanBoXinXiZhiWeiDO> {

    /**
     * 根据信息ID查询职位数量
     * @param xinxiId
     * @return
     */
    Map<Long,Integer> listChuanBoZhiweiXin(Long xinxiId);

    Page<ChuanBoXinXiZhiWeiVO> findChuanBoXinXiZhiWei(ChuanBoXinXiZhiWeiSearchPO searchPO);

    boolean saveChuanBoXinXiZhiWei(ChuanBoXinXiZhiWeiSavePO savePO);

    ChuanBoXinXiZhiWeiVO getChuanBoXinXiZhiWei(Long id);

    boolean updateChuanBoXinXiZhiWei(ChuanBoXinXiZhiWeiSavePO savePO);

    boolean delChuanBoXinXiZhiWei(ChuanBoXinXiZhiWeiSavePO savePO);

    boolean updateStatus(StatusRequest statusRequest);
}
